package com.mccrea.pattern.command;

/**
 * @Classname Command
 * @Description 命令类，持有电视对象
 * @Date 2021/5/18 0018 10:35
 * @Created by Mccrea_Gao
 */
public abstract class Command {

    protected Television television;

    public Command(Television television) {
        this.television = television;
    }

    /**
     * 命令执行
     */
    abstract void execute();
}
